<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="../include.jsp" %>

<!DOCTYPE html>
<html>
<head>

</head>
<body id="z_body">
	<div class="container-fluid">
		<div class="row">
			<div class="col-md-12">

				<div class="panel">
					<div class="panel-heading">
						<i class="icon icon-list"></i> 处置力量管理 
						<a onclick="addCzlly()" style="float: right;">新增页</a><i  style="float: right;">&nbsp;&nbsp;</i>
						<a onclick="addCzllz()" style="float: right;">新增组</a><i  style="float: right;">&nbsp;&nbsp;</i>
						<a onclick="addCzllzcy()" style="float: right;">新增成员</a>
					</div>
					<div class="panel-body">
						<div id="tree_1" class="ztree">
							<iframe id="mytree" src='tree' style='height: 80%; width: 100%;'></iframe>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
function getPage() {//分页查询
	$('#mytree').attr('src',$('#mytree').attr('src'));
}
function addCzlly() {
	new $.zui.ModalTrigger({
		iframe : "../czlly/form?act=add",
		size : "lg",
		title : "新增处置力量页"
	}).show();
}
function addCzllz() {
	new $.zui.ModalTrigger({
		iframe : "../czllz/form?act=add",
		size : "lg",
		title : "新增处置力量组"
	}).show();
}
function addCzllzcy() {
	new $.zui.ModalTrigger({
		iframe : "../czllzcy/form?act=add",
		size : "lg",
		title : "新增处置力量组成员"
	}).show();
}
function toAddCzllz(id) {
	new $.zui.ModalTrigger({
		iframe : "../czllz/form?ybh=" + id,
		size : "lg",
		title : "新增组"
	}).show();
}
function toAddCzllzcy(id) {
	new $.zui.ModalTrigger({
		iframe : "../czllzcy/form?zbh=" + id,
		size : "lg",
		title : "新增组成员"
	}).show();
}
function toUpdateCzlly(id) {//打开修改页面
	new $.zui.ModalTrigger({
		iframe : "../czlly/form?act=update&id=" + id,
		size : "lg",
		title : "修改处置力量页"
	}).show();
}
function toUpdateCzllz(id) {//打开修改页面
	new $.zui.ModalTrigger({
		iframe : "../czllz/form?act=update&id=" + id,
		size : "lg",
		title : "修改处置力量组"
	}).show();
}
function toUpdateCzllzcy(id) {//打开修改页面
	new $.zui.ModalTrigger({
		iframe : "../czllzcy/form?act=update&id=" + id,
		size : "lg",
		title : "修改处置力量组成员"
	}).show();
}
function deleteCzlly(id) {//删除
	myzui.confirm("确认要删除吗?", function() {
		tool.query("../czlly/delete", {
			id : id
		}, function(data) {
			getPage();
		});
	});
}
function deleteCzllz(id) {//删除
	myzui.confirm("确认要删除吗?", function() {
		tool.query("../czllz/delete", {
			id : id
		}, function(data) {
			getPage();
		});
	});
}
function deleteCzllzcy(id) {//删除
	myzui.confirm("确认要删除吗?", function() {
		tool.query("../czllzcy/delete", {
			id : id
		}, function(data) {
			getPage();
		});
	});
}

</script>
</html>